package com.snpic.appaw.module.insure.service.s3.bo;

import lombok.Data;

/**
 * 请求报文实体类
 */
@Data
public class FileEntityBO {

    //桶
    String bucketName;

    //上传文件名称
    String key;

    //中通天鸿下载录音的url
    String url;

    //文件路径  通过本地文件下载
    String filePath;

    //查询文件Key的前缀
    String prefix;

    //上一个查询的token 和prefix 不能同时使用
    String token;

    //上传文本文件, txt和json文件的文本内容
    String body;

    //水印参数
    WatermarkBO watermark = new WatermarkBO();

    //是否要设置文件大小
    Boolean setsize = true;

    public FileEntityBO() {
    }

    public FileEntityBO(String bucketName, String key, String url) {
        this.bucketName = bucketName;
        this.key = key;
        this.url = url;
    }

    public FileEntityBO(String bucketName, String key, String url, String filePath) {
        this.bucketName = bucketName;
        this.key = key;
        this.url = url;
        this.filePath = filePath;
    }

    public FileEntityBO(String bucketName, String key, String url, WatermarkBO watermark) {
        this.bucketName = bucketName;
        this.key = key;
        this.url = url;
        this.watermark = watermark;
    }

    @Override
    public String toString() {
        return "FileEntity{" +
                "bucketName='" + bucketName + '\'' +
                ", key='" + key + '\'' +
                ", url='" + url + '\'' +
                ", filePath='" + filePath + '\'' +
                ", prefix='" + prefix + '\'' +
                '}';
    }
}
